export const NODE_ENV = process.env.NODE_ENV as 'development' | 'production'
// mongoose配置
export const MONGO = {
  development: {
    url: 'mongodb://test_xsyx:hc8mSDCfP8jLatNb@42.193.231.115:27017/test_xsyx'
    // url: 'mongodb://localhost:27017/chabaidao'
  },
  production: {
    url: 'mongodb://chabaidao:kn3ALYA32n7FAnFa@42.193.231.115:27017/chabaidao'
  }
}
// mysql配置
export const DATABASE = {
  // 本地环境
  development: {
    dbName: 'xx',
    user: 'xx',
    password: 'xx',
    host: 'xx',
    port: 3306
  },

  // 阿里云
  production: {
    dbName: 'xx',
    user: 'xx',
    password: 'x',
    host: 'x',
    port: 3306
  }
}
// 腾讯云储存桶
export const TENCENT_COS = {
  SecretId: 'AKIDITi7a7mbcmxiT9zolil0BUoJtaTE8yaS', // 推荐使用环境变量获取；用户的 SecretId，建议使用子账号密钥，授权遵循最小权限指引，降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
  SecretKey: 'IZqNxX6bzBGNa0VG5pXK0gIvPrR7jK0E', // 推荐使用环境变量获取；用户的 SecretKey，建议使用子账号密钥，授权遵循最小权限指引，降低使用风险。子账号密钥获取可参考https://cloud.tencent.com/document/product/598/37140
  Bucket: 'bucket-chabaidao-1308160773',
  Region: 'ap-guangzhou',
  prefix: 'assets/game/'
}
export const GPTINFO = {
  avatar: 'https://bucket-chabaidao-1308160773.cos.ap-guangzhou.myqcloud.com/img%2Frobot.png',
  name: 'robot',
  content: '我是一个AI助手，我擅长回答各种问题，你可以问我任何问题，我会给你一个答案。',
  role: 'assistant',
  prompt: null,
  date: 0
}

// jsonwebtoken
export const JWT = {
  development: {
    secret: 'Local',
    expiresIn: '30d'
  },
  production: {
    secret: 'Jay',
    expiresIn: '30d'
  }
}

// sms短信配置
export const SMS = {
  accessKeyId: 'x',
  accessKeySecret: 'x',
  signName: 'x',
  templateCode: 'x'
}

// 平台Map
export const PLATFORM = {
  wxMini: '微信小程序',
  wxH5: '微信H5',
  webH5: 'webH5',
  dyMini: '抖音小程序',
  ksMini: '快手小程序',
  qqMini: 'QQ小程序'
}

// 支付配置
export const PAY = {
  wx: {
    miniAppid: 'x',
    h5Appid: 'x',
    mchid: 'x',
    v3Key: 'x' //https://pay.weixin.qq.com/index.php/core/cert/api_cert#/api-password-v3
  }
}

// 支付方式配置
export const PAY_TYPE = [{ label: '微信小程序支付', value: 1 }]
export const WX_MINI = {
  appid: 'x',
  secret: 'x'
}

// 全局参数
export const FIXED_KEY = {
  port: 3232
}
